const config = require('../config');
const Koa = require('koa');
const serve = require('koa-static');

const app = new Koa();

app.use(serve(config.deployDir));

module.exports = () => {
  app.listen(config.server.port);
  console.log(`-> http://localhost:${config.server.port}`);
};
